package designpattern.structural_patterns;

public class AdapterPattern {

	interface Adapter{
		void operation();
	}
	
	public class Adaptee{
		public void adaptedOperation(){
			System.out.print("Adaptee");
		}
	}
	
	public class ConcreteAdapter implements Adapter{
		Adaptee adaptee = new Adaptee();
		@Override
		public void operation() {
			adaptee.adaptedOperation();
		}
		
	}
	
	public static void main(String[] args) {
		AdapterPattern adapterPattern = new AdapterPattern();
		Adapter adapter = adapterPattern.new ConcreteAdapter();
		adapter.operation();
	}
}
